package com.huas.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Talk {
    private Integer id;

    private String content;

    private Integer status;

    private Integer createBy;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
    //注解表示该字段不在数据库中，是用来作页面渲染的
    @Transient
    private String author;

}